Working of Timer and Counter in 8051